from rest_framework import serializers

from user.models import UserModel, AddressModel


class UserSerializer(serializers.ModelSerializer):
    head_img = serializers.ImageField(required=False)

    class Meta:
        model = UserModel
        fields = '__all__'


class AddressSerializer(serializers.ModelSerializer):
    class Meta:
        model = AddressModel
        fields = '__all__'
